using Microsoft.Xna.Framework;

namespace CthulhuDomain
{
  public class RectangleAdapter : IRectangle
  {
    private Rectangle _adaptee;
    public Rectangle Adaptee
    {
      get { return _adaptee; }
      set { _adaptee = value; }
    }

    public RectangleAdapter(int x, int y, int width, int height)
    {
      Adaptee = new Rectangle(x, y, width, height);
    }

    public int Height
    {
      get
      {
        return Adaptee.Height;
      }
      set
      {
        _adaptee.Height = value;
      }
    }
    public int Width
    {
      get
      {
        return Adaptee.Width;
      }
      set
      {
        _adaptee.Width = value;
      }
    }
    public int X
    {
      get
      {
        return Adaptee.X;
      }
      set
      {
        _adaptee.X = value;
      }
    }

    public int Y
    {
      get
      {
        return Adaptee.Y;
      }
      set
      {
        _adaptee.Y = value;
      }
    }
  }
}